﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPage.master" AutoEventWireup="true" CodeBehind="RegisterCustomer.aspx.cs" Inherits="Project.RegisterCustomer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="Label1" runat="server" CssClass="style1" Font-Size="X-Large" 
        style="color: #0000FF; font-size: xx-large; font-weight: 700" 
        Text="Register Customer"></asp:Label>
    <br />
    <table style="width: 100%">
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Username</td>
            <td style="width: 300px">
                <asp:TextBox ID="txtUsername" runat="server" style="text-align: left" 
                    Width="170px"></asp:TextBox>
            </td>
            
            <td style="width: 300px">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Password</td>
            <td style="width: 300px">
                <asp:TextBox ID="txtPassword" runat="server" Width="170px" TextMode="Password"></asp:TextBox>
            </td>
            
            <td style="width: 300px">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Confirm password</td>
            <td style="width: 300px">
                <asp:TextBox ID="txtConpassword" runat="server" Width="170px" 
                    TextMode="Password"></asp:TextBox>
            </td>
            
            <td style="width: 300px">
                <asp:CompareValidator ID="cvConpassword" runat="server" 
                    ControlToCompare="txtPassword" ControlToValidate="txtConpassword" 
                    ErrorMessage="Confirm password must be the same as password" ForeColor="Red"></asp:CompareValidator>
            </td>
            
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Full name</td>
            <td style="width: 300px">
                <asp:TextBox ID="txtFullname" runat="server" Width="170px"></asp:TextBox>
            </td>
            
            <td style="width: 300px">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Email</td>
            <td style="width: 300px">
                <asp:TextBox ID="txtEmail" runat="server" Width="170px"></asp:TextBox>
            </td>
            <td style="width: 300px">
                <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Invalid email" ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Birthday</td>
            <td style="width: 300px">
                <asp:Calendar ID="cldBirthday" runat="server"></asp:Calendar>
            </td>
            <td style="width: 300px">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Picture</td>
            <td style="width: 300px">
                <asp:FileUpload ID="flupload" runat="server" />
            </td>
            
            <td style="width: 300px">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Gender</td>
            <td style="width: 300px">
                <asp:RadioButton ID="raMale" runat="server" GroupName="gender" Text="Male" />
                <asp:RadioButton ID="raFemale" runat="server" GroupName="gender" 
                    Text="Female" />
            </td>
            
            <td style="width: 300px">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Address</td>
            <td style="width: 300px">
                <asp:TextBox ID="mttxtAddress" runat="server" Width="178px" 
                    TextMode="MultiLine" Height="64px"></asp:TextBox>
            </td>
            <td style="width: 300px">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4" style="text-align: left; width: 115px; ">
                Phone</td>
            <td style="width: 300px">
                <asp:TextBox ID="txtPhone" runat="server" Width="170px"></asp:TextBox>
            </td>
            
            <td style="width: 300px">
                &nbsp;</td>
            
        </tr>
        </table>
                <asp:ImageButton ID="imgbRegister" runat="server" 
                    ImageUrl="~/Image button/Register.png" />
                <asp:ImageButton ID="imgbReset" runat="server" 
                    ImageUrl="~/Image button/Reset.png" />
                <asp:ImageButton ID="mgbCancel" runat="server" 
                    ImageUrl="~/Image button/Cancel.png" />
            </asp:Content>
